<%@ page language="java" pageEncoding="utf-8"%>
<%@ page import="com.fit.user.dao.*"  %>
<%@page import="com.fit.user.entity.*"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@page import="com.fit.user.entity.*"%>
<%@ page import="com.fit.user.util.*"%>

 <%
  String contextPath=request.getContextPath();
  
  	//根据警号得到该警员的权限
	  String policeID = (String)session.getAttribute("policeID");
  PoliceMsgDAO policeMsgDAO = new PoliceMsgDAO();
  String purview = policeMsgDAO.getPoliceMsg(policeID).getPurview();
  String policeName = policeMsgDAO.getPoliceMsg(policeID).getPoliceName();
  	String photoAddr = policeMsgDAO.getPoliceMsg(policeID).getPhotoAddr();
   %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html lang="true">
  <head>
   
    
    <title>tree.jsp</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<script src="<%=contextPath %>/js/prototype.lite.js" type="text/javascript"></script>
<script src="<%=contextPath %>/js/moo.fx.js" type="text/javascript"></script>
<script src="<%=contextPath %>/js/moo.fx.pack.js" type="text/javascript"></script>




<style>
body{
	font:12px Arial, Helvetica, sans-serif;
	color: #000;
	background-color: #EEF2FB;
	margin: 0px;
}
#container {
	width: 260px;
}
H1 {
	font-size: 12px;
	margin: 0px;
	width: 260px;
	cursor: pointer;
	height: 30px;
	line-height: 20px;	
}
H1 a{
	display: block;
	width: 260px;
	color: #000;
	height: 30px;
	text-decoration: none;
	moz-outline-style: none;
	background-image: url(../img/skin/menu_bgs.gif);

/*	background-repeat: no-repeat;*/
	line-height: 30px;
	text-align: center;
	margin: 0px;
	padding: 0px;
}
.content{
	width: 260px;
	height: 26px;
	
}
.MM ul {
	list-style-type: none;
	margin: 0px;
	padding: 0px;
	display: block;
}
.MM li {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	line-height: 26px;
	color: #333333;
	list-style-type: none;
	display: block;
	text-decoration: none;
	height: 26px;
	width: 260px;
	padding-left: 0px;
}
.MM {
	width: 260px;
	margin: 0px;
	padding: 0px;
	left: 0px;
	top: 0px;
	right: 0px;
	bottom: 0px;
	clip: rect(0px,0px,0px,0px);
}
.MM a:link {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	line-height: 26px;
	color: #333333;
	background-image: url(../img/skin/menu_bg1.gif);
	/*background-repeat: no-repeat;*/
	height: 26px;
	width: 260px;
	display: block;
	text-align: center;
	margin: 0px;
	padding: 0px;
	overflow: hidden;
	text-decoration: none;
}
.MM a:visited {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	line-height: 26px;
	color: #333333;
	background-image: url(../img/skin/menu_bg1.gif);
	/*background-repeat: no-repeat;*/
	display: block;
	text-align: center;
	margin: 0px;
	padding: 0px;
	height: 26px;
	width: 260px;
	text-decoration: none;
}
.MM a:active {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	line-height: 26px;
	color: #333333;
	background-image: url(../img/skin/menu_bg1.gif);
	/*background-repeat: no-repeat;*/
	height: 26px;
	width: 260px;
	display: block;
	text-align: center;
	margin: 0px;
	padding: 0px;
	overflow: hidden;
	text-decoration: none;
}
.MM a:hover {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	line-height: 26px;
	font-weight: bold;
	color: #006600;
	background-image: url(../img/skin/menu_bg2.gif);
	
	text-align: center;
	display: block;
	margin: 0px;

	padding: 0px;
	height: 26px;
	width: 260px;
	text-decoration: none;
}
</style>
<script type="text/javascript">
function show_hidd(id)
{
       
        var divobj = document.getElementById("div"+id);

          if(divobj.style.display == "none")
          {
			divobj.style.display ="block"
          }
          else
          {
divobj.style.display ="none"
          }

}

function gofun(_link,tag) {
    window.top.frames('mainFrame').location.href=_link;
		if(tag=='0')
		{
	document.getElementById("zp").style.display="none";
    document.getElementById("sp").style.display="block";
		}else if(tag=='1'){
		document.getElementById("zp").style.display="block";
    document.getElementById("sp").style.display="none";
		}
		
 }

function gofun_check()
  {
  alert("对不起,您没有操作权限!");
  }
  
function gofun_beian(noo,tag)
  {
  alert("对不起,您没有备案登记！");
  location.reload();
if(tag=='0')
		{
	document.getElementById("zp").style.display="none";
    document.getElementById("sp").style.display="block";
		}
  }

</script>
</head>
<%
String caseID = (String)session.getAttribute("caseID");
 %>
<body >
<table width="100%" height="280" border="0" cellpadding="0" cellspacing="0" bgcolor="#EEF2FB">
<tr>
<td height="260" width="260" >
<div style="display:none;" id="sp">
<table cellpadding="0" cellspacing="0" width="100%" height="100%" bgcolor="#c0c0c0">
<tr>
<td>
视频
</td></tr>
</table>
</div>
<div style="display: block" id="zp">
<table width="100%" height="100%"  bgcolor="#c0c0c0" cellpadding="0" cellspacing="0"><tr><td>
   	<img alt="touxiang" src="<%=contextPath%>/uppolice/<%=photoAddr %>" height="260" width="260">
   	</td></tr></table>
   
</div>
</td>
</tr>


  <tr>
    <td width="260" valign="top">
	<div id="container">
	 
      <h1 class="type"><a onclick="show_hidd('1')" href="#"><font color="#ffffff" size="3">
      办案区使用备案登记
</font></a></h1>
      <div class="content" id="div1">
   
        <ul class="MM">
        
      
          <li><a href="#" onclick="gofun('/police/police/bei_an.jsp','1')">新&nbsp;建&nbsp;案&nbsp;件</a></li>
          
          <li><a href="#"  onclick="gofun('/police/police/handle_pre_case.jsp','1')">继&nbsp;续&nbsp;上&nbsp;次</a></li>
         
         
		 
       
        </ul>
      </div>

             <h1 class="type">
             <a href="#"  onclick="show_hidd('2')"><font color="#ffffff" size="3">办案区功能使用</font></a></h1>
      <div class="content" id="div2">
    
        <ul class="MM">

       
          <li><a href="#" onclick="gofun('/police/police/modules.jsp','0')">主&nbsp;页&nbsp;面</a></li>
          <%
if(caseID!=null)
{

 %>
          <li><a href="#" onclick="gofun('/police/police/bodyMsg.jsp','0')">人&nbsp;身&nbsp;检&nbsp;查</a></li>
             <li><a href="#" onclick="gofun('/police/police/goods_and_material_evidencesmsg.jsp','0')">物&nbsp;证&nbsp;保&nbsp;管</a></li>
              <li><a href="#" onclick="gofun('/police/msg_get.jsp'),'0'">信&nbsp;息&nbsp;采&nbsp;集</a></li>
                   <li><a href="#" onclick="gofun('/police/police/inquiry_and_inquest.jsp','0')">询&nbsp;问&nbsp;讯&nbsp;问</a></li>
                      <li><a href="#" onclick="gofun('/police/police/manager_houwen.jsp','0')">侯&nbsp;问&nbsp;约&nbsp;束</a></li>
                         <li><a href="#" onclick="gofun('/police/police/select_case.jsp','0')">资&nbsp;料&nbsp;调&nbsp;阅</a></li>
                         <%
                         }else{
                          %>
                           <li><a href="#" onclick="gofun_beian('','0')">人&nbsp;身&nbsp;检&nbsp;查</a></li>
             <li><a href="#" onclick="gofun_beian('','0')">物&nbsp;证&nbsp;保&nbsp;管</a></li>
              <li><a href="#" onclick="gofun_beian('','0')">信&nbsp;息&nbsp;采&nbsp;集</a></li>
                   <li><a href="#" onclick="gofun_beian('','0')">询&nbsp;问&nbsp;讯&nbsp;问</a></li>
                      <li><a href="#" onclick="gofun_beian('','0')">侯&nbsp;问&nbsp;约&nbsp;束</a></li>
                         <li><a href="#" onclick="gofun('/police/police/select_case.jsp','0')">资&nbsp;料&nbsp;调&nbsp;阅</a></li>
                          <%} %>
                   
        </ul>
      </div>
      <h1 class="type"><a href="#"  onclick="show_hidd('99')"><font color="#ffffff" size="3">县局管理中心</font></a></h1>
      <div class="content" id="div99">
    
        <ul class="MM">

              <%
				if(purview != null && purview.equals("0")){
				 %>
            <li><a href="#" onclick="gofun('/police/police/manager.jsp')">县&nbsp;局&nbsp;管&nbsp;理</a></li>
          <%} else{%>

 <li><a href="#" onclick="gofun_check('')"> 县&nbsp;局&nbsp;管&nbsp;理</a></li>        <%} %>
        
         <!-- --
           <li><a href="#" onclick="gofun('/police/police/m_main.jsp')">桌面</a></li>
      
                   <li><a href="#"  target="_self" onClick="logout();">退出系统</a></li>
                    -->
        </ul>
      </div>
    </div>
     
      </div>
      <!-- 
        <script type="text/javascript">
		var contents = document.getElementsByClassName('content');
		var toggles = document.getElementsByClassName('type');
	
		var myAccordion = new fx.Accordion(
			toggles, contents, {opacity: true, duration: 400}
		);
		myAccordion.showThisHideOpen(contents[0]);
	</script>
	- -->
        </td>
  </tr>
</table>
</body>
</html:html>
